﻿@model MiddleMVCTask.BL.ViewModels.LoginViewModel

@{
    ViewBag.Title = "Login";
}

<div id="wrapper">
    <h1>@ViewBag.Title</h1>
    <div id="form-athentication">
        @using (Html.BeginForm("Login", "Account", FormMethod.Post, new { id = "login-form", role = "form" }))
        {
                    @Html.AntiForgeryToken();
                    <fieldset>
                        <legend class="form-legend">Please enter your username and password</legend>
                        <div class="form-group">
                            @Html.LabelFor(m => m.Username, new { @class = "form-label" })
                            @Html.TextBoxFor(m => m.Username, new { id = "username" })

                        </div>
                        <div class="form-group">
                            @Html.LabelFor(m => m.Password, new { @class = "form-label" })
                            @Html.TextBoxFor(m => m.Password, new { id = "password", type = "password" })

                        </div>
                        <button>@ViewBag.Title</button>
                    </fieldset>

                    @Html.ValidationSummary();
                    <div class="link">
                        @Html.ActionLink("Register", "Register") if you don't have an account.
                    </div>
        }
    </div>
</div>
